package cn.zysheep.factory.simple_factory;

/**
 * @ClassName: CoffeeStore
 * @Description: 咖啡店
 * @Author: lyw
 * @Date: 2022/10/17 22:46
 */
public class CoffeeStore {

    public Coffee orderCoffee(String type) {
        SimpleCoffeeFactory simpleCoffeeFactory = new SimpleCoffeeFactory();
        Coffee coffee = simpleCoffeeFactory.createCoffee(type);
        coffee.addsugar();
        coffee.addMilk();
        return coffee;
    }
}
